/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pkl53.view;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.EntityManager;
import pkl53.component.Textfield;
import pkl53.component.dateConverter;


/**
 *
 * @author HP G42 (RILLA)
 */
public class Blok123 extends javax.swing.JPanel {
   
    /**
     * Creates new form BlokPekerja123
     */
   private ArrayList<Textfield> listTextFieldBlok123 = new ArrayList<Textfield>();
    /**
     * Creates new form blok123
     */
    public Blok123() {
        initComponents();
        addListTextfield();
        
    }
    
    public List<Textfield> getListTextFieldBlok123() {
        return listTextFieldBlok123;
    }

    public void addListTextfield() {
        getListTextFieldBlok123().add(0, getB1R1());
        getListTextFieldBlok123().add(1, getB1R2());
        getListTextFieldBlok123().add(2, getB1R3());
        getListTextFieldBlok123().add(3, getB1R4());
        getListTextFieldBlok123().add(4, getB1R5a());
        getListTextFieldBlok123().add(4, getB1R5b());
        getListTextFieldBlok123().add(5, getB1R6());
        getListTextFieldBlok123().add(6, getB1R7());
        getListTextFieldBlok123().add(7, getB1R8());
        getListTextFieldBlok123().add(8, getB1R9());
     
        getListTextFieldBlok123().add(10, getB2R1());
//        getListTextFieldBlok123().add(11, getB2R2());
//        getListTextFieldBlok123().add(12, getB3C1R1());
//        getListTextFieldBlok123().add(13, getB3C2R1());
//        getListTextFieldBlok123().add(14, getB3C1R2());
//        getListTextFieldBlok123().add(15, getB3C2R2());
//        getListTextFieldBlok123().add(16, getB3C1R3a());
//        getListTextFieldBlok123().add(17, getB3C1R3b());
//        getListTextFieldBlok123().add(18, getB3C2R3a());
//        getListTextFieldBlok123().add(19, getB3C2R3b());
    }
    
    private EntityManager em;
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        blok1232 = new pkl53.imageClass.BlokPekerja123();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        B1R2 = new pkl53.component.Textfield();
        B1R1 = new pkl53.component.Textfield();
        B1R3 = new pkl53.component.Textfield();
        B1R4 = new pkl53.component.Textfield();
        B1R5a = new pkl53.component.Textfield();
        B1R5b = new pkl53.component.Textfield();
        B3C1R1 = new pkl53.component.Textfield();
        B1R8 = new pkl53.component.Textfield();
        B1R7 = new pkl53.component.Textfield();
        B1R6 = new pkl53.component.Textfield();
        B2R1 = new pkl53.component.Textfield();
        B2R2 = new pkl53.component.Textfield();
        B3C2R1 = new pkl53.component.Textfield();
        B3C1R2 = new pkl53.component.Textfield();
        B3C2R2 = new pkl53.component.Textfield();
        B3C1R3b = new pkl53.component.Textfield();
        B3C2R3a = new pkl53.component.Textfield();
        B3C1R3a = new pkl53.component.Textfield();
        B3C2R3b = new pkl53.component.Textfield();
        KKS = new pkl53.component.Textfield();
        B2R3 = new pkl53.component.Textfield();
        kksLabel = new javax.swing.JLabel();

        setPreferredSize(new java.awt.Dimension(1070, 724));

        jLayeredPane1.setPreferredSize(new java.awt.Dimension(1367, 724));
        jLayeredPane1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        B1R2.setPanel(blok1232);
        jLayeredPane1.add(B1R2, new org.netbeans.lib.awtextra.AbsoluteConstraints(920, 460, 70, 27));

        B1R1.setLength(2);
        B1R1.setPanel(blok1232);
        jLayeredPane1.add(B1R1, new org.netbeans.lib.awtextra.AbsoluteConstraints(950, 400, 35, 27));

        B1R3.setPanel(blok1232);
        jLayeredPane1.add(B1R3, new org.netbeans.lib.awtextra.AbsoluteConstraints(920, 510, 70, 27));

        B1R4.setPanel(blok1232);
        jLayeredPane1.add(B1R4, new org.netbeans.lib.awtextra.AbsoluteConstraints(950, 560, 35, 27));

        B1R5a.setPanel(blok1232);
        jLayeredPane1.add(B1R5a, new org.netbeans.lib.awtextra.AbsoluteConstraints(790, 610, 50, 27));

        B1R5b.setPanel(blok1232);
        jLayeredPane1.add(B1R5b, new org.netbeans.lib.awtextra.AbsoluteConstraints(790, 650, 50, 27));

        B3C1R1.setPanel(blok1232);
        jLayeredPane1.add(B3C1R1, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 1240, 230, 20));

        B1R8.setPanel(blok1232);
        jLayeredPane1.add(B1R8, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 800, 380, 27));

        B1R7.setPanel(blok1232);
        jLayeredPane1.add(B1R7, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 750, 380, 27));

        B1R6.setPanel(blok1232);
        B1R6.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                B1R6FocusLost(evt);
            }
        });
        jLayeredPane1.add(B1R6, new org.netbeans.lib.awtextra.AbsoluteConstraints(950, 700, 35, 27));

        B2R1.setPanel(blok1232);
        B2R1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B2R1ActionPerformed(evt);
            }
        });
        B2R1.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                B2R1FocusLost(evt);
            }
        });
        jLayeredPane1.add(B2R1, new org.netbeans.lib.awtextra.AbsoluteConstraints(950, 970, 35, 27));

        B2R2.setPanel(blok1232);
        B2R2.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                B2R2FocusLost(evt);
            }
        });
        jLayeredPane1.add(B2R2, new org.netbeans.lib.awtextra.AbsoluteConstraints(950, 1020, 35, 27));

        B3C2R1.setPanel(blok1232);
        jLayeredPane1.add(B3C2R1, new org.netbeans.lib.awtextra.AbsoluteConstraints(760, 1240, 230, 20));

        B3C1R2.setLength(7);
        B3C1R2.setPanel(blok1232);
        jLayeredPane1.add(B3C1R2, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 1270, 150, 30));

        B3C2R2.setPanel(blok1232);
        jLayeredPane1.add(B3C2R2, new org.netbeans.lib.awtextra.AbsoluteConstraints(840, 1270, 150, 20));

        B3C1R3b.setPanel(blok1232);
        jLayeredPane1.add(B3C1R3b, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 1310, 30, 20));

        B3C2R3a.setPanel(blok1232);
        jLayeredPane1.add(B3C2R3a, new org.netbeans.lib.awtextra.AbsoluteConstraints(780, 1310, 30, 20));

        B3C1R3a.setPanel(blok1232);
        jLayeredPane1.add(B3C1R3a, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 1310, 30, 20));

        B3C2R3b.setPanel(blok1232);
        jLayeredPane1.add(B3C2R3b, new org.netbeans.lib.awtextra.AbsoluteConstraints(960, 1310, 30, 20));

        KKS.setPanel(blok1232);
        jLayeredPane1.add(KKS, new org.netbeans.lib.awtextra.AbsoluteConstraints(760, 1420, 240, 27));

        B2R3.setPanel(blok1232);
        jLayeredPane1.add(B2R3, new org.netbeans.lib.awtextra.AbsoluteConstraints(950, 1070, 35, 27));

        kksLabel.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        kksLabel.setText("KKS");
        jLayeredPane1.add(kksLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 1420, -1, -1));

        javax.swing.GroupLayout blok1232Layout = new javax.swing.GroupLayout(blok1232);
        blok1232.setLayout(blok1232Layout);
        blok1232Layout.setHorizontalGroup(
            blok1232Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1070, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        blok1232Layout.setVerticalGroup(
            blok1232Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1761, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(blok1232, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(blok1232, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
    }// </editor-fold>//GEN-END:initComponents

    private void B2R2FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_B2R2FocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_B2R2FocusLost

    private void B2R1FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_B2R1FocusLost
        // TODO add your handling code here:
        DataEntriPekerjaanPanel.setJumlahPekerja(Integer.parseInt(B2R1.getText()));
    }//GEN-LAST:event_B2R1FocusLost

    private void B2R1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B2R1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_B2R1ActionPerformed

    private void B1R6FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_B1R6FocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_B1R6FocusLost


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private pkl53.component.Textfield B1R1;
    private pkl53.component.Textfield B1R2;
    private pkl53.component.Textfield B1R3;
    private pkl53.component.Textfield B1R4;
    private pkl53.component.Textfield B1R5a;
    private pkl53.component.Textfield B1R5b;
    private pkl53.component.Textfield B1R6;
    private pkl53.component.Textfield B1R7;
    private pkl53.component.Textfield B1R8;
    private pkl53.component.Textfield B2R1;
    private pkl53.component.Textfield B2R2;
    private pkl53.component.Textfield B2R3;
    private pkl53.component.Textfield B3C1R1;
    private pkl53.component.Textfield B3C1R2;
    private pkl53.component.Textfield B3C1R3a;
    private pkl53.component.Textfield B3C1R3b;
    private pkl53.component.Textfield B3C2R1;
    private pkl53.component.Textfield B3C2R2;
    private pkl53.component.Textfield B3C2R3a;
    private pkl53.component.Textfield B3C2R3b;
    private pkl53.component.Textfield KKS;
    private pkl53.imageClass.BlokPekerja123 blok1232;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JLabel kksLabel;
    // End of variables declaration//GEN-END:variables

    /**
     * @return the em
     */
    public EntityManager getEm() {
        return em;
    }

    /**
     * @param em the em to set
     */
    public void setEm(EntityManager em) {
        this.em = em;
    }

    /**
     * @return the B1R1
     */
    public pkl53.component.Textfield getB1R1() {
        return B1R1;
    }

    /**
     * @param B1R1 the B1R1 to set
     */
    public void setB1R1(pkl53.component.Textfield B1R1) {
        this.B1R1 = B1R1;
    }

    /**
     * @return the B1R2
     */
    public pkl53.component.Textfield getB1R2() {
        return B1R2;
    }

    /**
     * @param B1R2 the B1R2 to set
     */
    public void setB1R2(pkl53.component.Textfield B1R2) {
        this.B1R2 = B1R2;
    }

    /**
     * @return the B1R3
     */
    public pkl53.component.Textfield getB1R3() {
        return B1R3;
    }

    /**
     * @param B1R3 the B1R3 to set
     */
    public void setB1R3(pkl53.component.Textfield B1R3) {
        this.B1R3 = B1R3;
    }

    /**
     * @return the B1R4
     */
    public pkl53.component.Textfield getB1R4() {
        return B1R4;
    }

    /**
     * @param B1R4 the B1R4 to set
     */
    public void setB1R4(pkl53.component.Textfield B1R4) {
        this.B1R4 = B1R4;
    }

    /**
     * @return the B1R5a
     */
    public pkl53.component.Textfield getB1R5a() {
        return B1R5a;
    }

    /**
     * @param B1R5a the B1R5a to set
     */
    public void setB1R5a(pkl53.component.Textfield B1R5a) {
        this.B1R5a = B1R5a;
    }

    /**
     * @return the B1R5b
     */
    public pkl53.component.Textfield getB1R5b() {
        return B1R5b;
    }

    /**
     * @param B1R5b the B1R5b to set
     */
    public void setB1R5b(pkl53.component.Textfield B1R5b) {
        this.B1R5b = B1R5b;
    }

    /**
     * @return the B1R6
     */
    public pkl53.component.Textfield getB1R6() {
        return B1R6;
    }

    /**
     * @param B1R6 the B1R6 to set
     */
    public void setB1R6(pkl53.component.Textfield B1R6) {
        this.B1R6 = B1R6;
    }

    /**
     * @return the B1R7
     */
    public pkl53.component.Textfield getB1R7() {
        return B1R7;
    }

    /**
     * @param B1R7 the B1R7 to set
     */
    public void setB1R7(pkl53.component.Textfield B1R7) {
        this.B1R7 = B1R7;
    }

    /**
     * @return the B1R8
     */
    public pkl53.component.Textfield getB1R8() {
        return B1R8;
    }

    /**
     * @param B1R8 the B1R8 to set
     */
    public void setB1R8(pkl53.component.Textfield B1R8) {
        this.B1R8 = B1R8;
    }

    /**
     * @return the B1R9
     */
    public pkl53.component.Textfield getB1R9() {
        return B2R1;
    }

    /**
     * @param B1R9 the B1R9 to set
     */
    public void setB1R9(pkl53.component.Textfield B1R9) {
        this.B2R1 = B1R9;
    }

    /**
     * @return the B2R1
     */
    public pkl53.component.Textfield getB2R1() {
        return B2R2;
    }

    /**
     * @param B2R1 the B2R1 to set
     */
    public void setB2R1(pkl53.component.Textfield B2R1) {
        this.B2R2 = B2R1;
    }

    

    /**
     * @return the B3C1R1
     */
    public pkl53.component.Textfield getB3C1R1() {
        return B3C1R1;
    }

    /**
     * @param B3C1R1 the B3C1R1 to set
     */
    public void setB3C1R1(pkl53.component.Textfield B3C1R1) {
        this.B3C1R1 = B3C1R1;
    }

    /**
     * @return the B3C1R2
     */
    public pkl53.component.Textfield getB3C1R2() {
        return B3C1R2;
    }

    /**
     * @param B3C1R2 the B3C1R2 to set
     */
    public void setB3C1R2(pkl53.component.Textfield B3C1R2) {
        this.B3C1R2 = B3C1R2;
    }

    /**
     * @return the B3C1R3a
     */
    public pkl53.component.Textfield getB3C1R3a() {
        return B3C1R3a;
    }

    /**
     * @param B3C1R3a the B3C1R3a to set
     */
    public void setB3C1R3a(pkl53.component.Textfield B3C1R3a) {
        this.B3C1R3a = B3C1R3a;
    }

    /**
     * @return the B3C1R3b
     */
    public pkl53.component.Textfield getB3C1R3b() {
        return B3C1R3b;
    }

    /**
     * @param B3C1R3b the B3C1R3b to set
     */
    public void setB3C1R3b(pkl53.component.Textfield B3C1R3b) {
        this.B3C1R3b = B3C1R3b;
    }

    /**
     * @return the B3C2R1
     */
    public pkl53.component.Textfield getB3C2R1() {
        return B3C2R1;
    }

    /**
     * @param B3C2R1 the B3C2R1 to set
     */
    public void setB3C2R1(pkl53.component.Textfield B3C2R1) {
        this.B3C2R1 = B3C2R1;
    }

    /**
     * @return the B3C2R2
     */
    public pkl53.component.Textfield getB3C2R2() {
        return B3C2R2;
    }

    /**
     * @param B3C2R2 the B3C2R2 to set
     */
    public void setB3C2R2(pkl53.component.Textfield B3C2R2) {
        this.B3C2R2 = B3C2R2;
    }

    /**
     * @return the B3C2R3a
     */
    public pkl53.component.Textfield getB3C2R3a() {
        return B3C2R3a;
    }

    /**
     * @param B3C2R3a the B3C2R3a to set
     */
    public void setB3C2R3a(pkl53.component.Textfield B3C2R3a) {
        this.B3C2R3a = B3C2R3a;
    }

    /**
     * @return the B3C2R3b
     */
    public pkl53.component.Textfield getB3C2R3b() {
        return KKS;
    }

    /**
     * @param B3C2R3b the B3C2R3b to set
     */
    public void setB3C2R3b(pkl53.component.Textfield B3C2R3b) {
        this.KKS = B3C2R3b;
    }

    /**
     * @return the blok1231
     */
    public pkl53.imageClass.BlokPekerja123 getBlok1231() {
        return getBlok1232();
    }

    /**
     * @param blok1231 the blok1231 to set
     */
    public void setBlok1231(pkl53.imageClass.BlokPekerja123 blok1231) {
        this.setBlok1232(blok1231);
    }

    /**
     * @return the B2R3
     */
    public pkl53.component.Textfield getB2R3() {
        return B2R3;
    }

    /**
     * @param B2R3 the B2R3 to set
     */
    public void setB2R3(pkl53.component.Textfield B2R3) {
        this.B2R3 = B2R3;
    }

   

    /**
     * @return the B3C2R3b1
     */
    public pkl53.component.Textfield getB3C2R3b1() {
        return B3C2R3b;
    }

    /**
     * @param B3C2R3b1 the B3C2R3b1 to set
     */
    public void setB3C2R3b1(pkl53.component.Textfield B3C2R3b1) {
        this.B3C2R3b = B3C2R3b1;
    }



    /**
     * @return the blok1232
     */
    public pkl53.imageClass.BlokPekerja123 getBlok1232() {
        return blok1232;
    }

    /**
     * @param blok1232 the blok1232 to set
     */
    public void setBlok1232(pkl53.imageClass.BlokPekerja123 blok1232) {
        this.blok1232 = blok1232;
    }
}
